package cn.itsource;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
/*
扫描mapper包，把该包下面所有的接口，都让MyBatis底层动态实现，并且把实现类还要交给Spring管控
就相当于之前，在mapper接口上加了一个@Mapper注解
 */
@MapperScan("cn.itsource.mapper")
public class CampusApp {
    public static void main(String[] args) {
        SpringApplication.run(CampusApp.class, args);
    }
}
